﻿@@{
    ViewBag.Title = "";
    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}
@{int index = 0;}
<div id="eidtInfo">
<form id="form1">
    <div class="easyui-panel" style="width:100%;border:none;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit-table">
            <tbody>
                @foreach(var item in Model.ColList)
                {
                    if (index % 2 == 0)
                    {
               @:<tr>
                    }
                    <td class="rt_title" width="90px">@item.CommentSimple：</td>
                    <td>
                        <input type="text" id="txt@(item.PropertyName)" name="@item.PropertyName" style="width:130px;" class="txt" @(item.IsValidate ? "required" : "")/>
@if(item.IsValidate){                        <span class='red'>&nbsp;*</span>
                        }
                    </td>
                    if (index % 2 != 0)
                    {
               @:</tr>
                    }
                    index++;
                }
@if(index % 2 != 0){
               @:</tr>
      }
            </tbody>
        </table>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit-table">
        <tr>
            <td align="center">
                <a href="javascript:$('#submit1')[0].click();" class="easyui-linkbutton" iconcls="icon-save">保存</a>
                <input id="submit1" type="submit" style="display: none;" />
                <a href="javascript:parent.closeWindow();" class="easyui-linkbutton" iconcls="icon-cancel">取消</a>
            </td>
        </tr>
    </table>
    <input type="hidden" name="Id" id="Id" />
</form>
</div>
<script>
    var id = '@@ViewBag.id';//id
    var opera = '@@ViewBag.oper';//操作类型
</script>
<script src="~/resources/js/@Model.ConfigInfo.ModelFolderName/@Model.ConfigInfo.EntityName/Edit.js"></script>
